% if editable:
    <input 
        type="text" 
        kind="${kind}" 
        name='${name}' 
        id ='${name}' 
        value="${value}"
        onfocus="onfocus_changestyle(this,'align_left float')"
        onblur="onfocus_changestyle(this,'align_right ${css_class} ${format_type}')"
        class="${css_class} ${format_type}" ${py.attrs(attrs)} alt='number'/>
% endif

% if editable and error:
    <span class="fielderror">${error}</span>
% endif

% if not editable:
    <span kind="${kind}" id="${name}" value="${value}"><div class="${format_type}">${value}</div></span>
% endif

